/**
 * Picasa Webalbum Integration jQuery plugin
 * This library was inspired aon pwa by Dieter Raber
 * @name jquery.pwi.js
 * @author Jeroen Diderik - http://www.jdee.nl/
 * @author Johan Borkhuis - http://www.borkhuis.com/
 * @revision 2.0.0 Beta
 * @date December 18, 2011
 * @copyright (c) 2010-2011 Jeroen Diderik(www.jdee.nl)
 * @license Creative Commons Attribution-Share Alike 3.0 Netherlands License - http://creativecommons.org/licenses/by-sa/3.0/nl/
 * @Visit http://pwi.googlecode.com/ for more informations, discussions etc about this library
 */
function formatPhotoTitleColorBox(){if(this.parentNode.childElementCount>1){var a=$(".downloadlink",this.parentNode);if(a.length>0){return this.title+"  "+"Download".link(a[0].href)}}return this.title}function formatPhotoTitleFancyBox(){this.title=this.element.title;if(this.element.parentNode.childElementCount>1){var a=$(".downloadlink",this.element.parentNode);if(a.length>0){var b='<a style="color: #FFF;" href="'+a[0].href+'">Download</a>';this.title=this.title+"  "+b}}}(function(a){var b,c={};a.fn.pwi=function(c){function v(b,c){if(b){if(e.loadingImage.length>0){var f=document.getElementById(e.loadingImage);if(f){f.style.display="block"}}document.body.style.cursor="wait";if(a.blockUI){d.block(e.blockUIConfig)}}else{if(e.loadingImage.length>0){var f=document.getElementById(e.loadingImage);if(f){f.style.display="none"}}document.body.style.cursor="default";if(a.blockUI){d.unblock()}d.html(c)}}function u(){v(true,"");var b="http://picasaweb.google.com/data/feed/api/user/"+e.username+(e.album!==""?"/album/"+e.album:"")+"?kind=photo&max-results="+e.maxResults+"&alt=json&q="+(e.authKey!==""?"&authkey="+e.authKey:"")+(e.keyword!==""?"&tag="+e.keyword:"")+"&imgmax=d&thumbsize="+e.thumbSize+(e.thumbCrop==1?"c":"u")+","+s(e.photoSize);a.getJSON(b,"callback=?",o);return d}function t(){if(e.photostore[e.album]){n(e.photostore[e.album])}else{var b="http://picasaweb.google.com/data/feed/api/user/"+e.username+(e.album!==""?"/album/"+e.album:"")+"?kind=photo&alt=json"+(e.authKey!==""?"&authkey="+e.authKey:"")+(e.keyword!==""?"&tag="+e.keyword:"")+"&imgmax=d&thumbsize="+e.thumbSize+(e.thumbCrop==1?"c":"u")+","+s(e.photoSize);v(true,"");a.getJSON(b,"callback=?",n)}return d}function s(b){var c=[94,110,128,200,220,288,320,400,512,576,640,720,800,912,1024,1152,1280,1440,1600];if(e.photoSize==="auto"){var d=a(window).height();var f=a(window).width();var g=d>f?f:d;for(var h=1;h<c.length;h++){if(g<c[h]){return c[h-1]}}}else{return b}}function r(){if(e.albumstore.feed){m(e.albumstore)}else{v(true,"");var b="http://picasaweb.google.com/data/feed/api/user/"+e.username+"?kind=album&access="+e.albumTypes+"&alt=json&thumbsize="+e.albumThumbSize+(e.albumCrop==1?"c":"u");a.getJSON(b,"callback=?",m)}return d}function q(a){a.stopPropagation();a.preventDefault();e.onclickThumb(a)}function p(a){a.stopPropagation();a.preventDefault();e.onclickAlbumThumb(a)}function o(b){var c=a("<div/>"),d=b.feed?b.feed.entry.length:0,f=0;var g=e.username.replace(/[@\.]/g,"_");j(b.feed.entry,e.sortPhotos);while(f<e.maxResults&&f<d){var h=l(b.feed.entry[f],false,g);c.append(h);f++}c.append("<div style='clear: both;height:0px;'> </div>");var i=a("div.pwi_photo",c).css(e.thumbCss);if(e.popupPlugin==="fancybox"||e.popupPlugin==="colorbox"){e.popupExt(i.find("a[rel='lb-"+g+"']"));e.popupExt(i.find("a[rel='yt-"+g+"']"),"yt");e.popupExt(i.find("a[rel='sl-"+g+"']"),"sl");e.popupExt(i.find("a[rel='map-"+g+"']"),"map")}else if(e.popupPlugin==="slimbox"){i.find("a[rel='lb-"+g+"']").slimbox(e.slimbox_config,function(b){var c=b.title;if(b.parentNode.childElementCount>1){var d=a(".downloadlink",b.parentNode);if(d.length>0){var e='<a href="'+d[0].href+'">Download</a>';c=b.title+"  "+e}}return[b.href,c]})}v(false,c);k("div.pwi_photo")}function n(b){var c,d,f="",g=b.feed.openSearch$totalResults.$t,i="",m="",n=b.feed.gphoto$location===undefined?"":b.feed.gphoto$location.$t,o,p=h(b.feed.gphoto$timestamp===undefined?"":b.feed.gphoto$timestamp.$t),q=g=="1"?false:true;var s=e.username.replace(/[@\.]/g,"_");if(b.feed.subtitle===undefined){o=""}else{var u=b.feed.subtitle.$t.match(/\[keywords\s*:\s*.*\s*\](.*)/);if(u){o=u[1]}else{o=b.feed.subtitle.$t}}i=b.feed.title==="undefined"||e.albumTitle.length>0?e.albumTitle:b.feed.title.$t;c=a("<div/>");if(e.mode!="album"&&e.mode!="keyword"){f=a("<div class='pwi_album_backlink'>"+e.labels.albums+"</div>").bind("click.pwi",function(a){a.stopPropagation();r();return false});c.append(f)}if(e.showAlbumDescription){d=a("<div class='pwi_album_description'/>");d.append("<div class='title'>"+i+"</div>");d.append("<div class='details'>"+g+" "+(q?e.labels.photos:e.labels.photo)+(e.showAlbumdate?", "+p:"")+(e.showAlbumLocation&&n?", "+n:"")+"</div>");d.append("<div class='description'>"+o+"</div>");c.append(d)}if(e.showSlideshowLink||e.showSlideshow){if(e.mode==="keyword"||e.keyword!==""){}else if(e.popupPlugin==="slimbox"){c.append("<div><a href='http://picasaweb.google.com/"+e.username+"/"+b.feed.gphoto$name.$t+""+(e.authKey!==""?"?authkey="+e.authKey:"")+"#slideshow/"+b.feed.entry[0].gphoto$id.$t+"' rel='gb_page_fs[]' target='_new' class='sslink'>"+e.labels.slideshow+"</a></div>")}else{var w=!a.support.opacity&&!window.XMLHttpRequest;var x=a("<div class='pwi_slideshow'/>");if(e.popupPlugin==="colorbox"||w||navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i)!=null){for(var y=0;y<b.feed.link.length;y++){if(b.feed.link[y].type=="text/html"&&b.feed.link[y].rel=="alternate"){x.append("<a class='iframe' href='"+b.feed.link[y].href+"#slideshow/' rel='sl-"+s+"'>"+e.labels.slideshow+"</a><br>");break}}}else{for(var y=0;y<b.feed.link.length;y++){if(b.feed.link[y].type=="application/x-shockwave-flash"){x.append("<a class='iframe' href='"+b.feed.link[y].href+"' rel='sl-"+s+"'>"+e.labels.slideshow+"</a><br>");break}}}c.append(x);c.append("<div style='clear: both;height:0px;'/>")}}if(g>e.maxResults){$pageCount=g/e.maxResults;var z=a("<div class='pwi_prevpage'/>").text(e.labels.prev),A=a("<div class='pwi_nextpage'/>").text(e.labels.next);m=a("<div class='pwi_pager'/>");if(e.page>1){z.addClass("link").bind("click.pwi",function(a){a.stopPropagation();e.page=parseInt(e.page,10)-1;t();return false})}m.append(z);for(var B=1;B<$pageCount+1;B++){if(B==e.page){f="<div class='pwi_pager_current'>"+B+"</div> "}else{f=a("<div class='pwi_pager_page'>"+B+"</div>").bind("click.pwi",B,function(a){a.stopPropagation();e.page=a.data;t();return false})}m.append(f)}if(e.page<$pageCount){A.addClass("link").bind("click.pwi",function(a){a.stopPropagation();e.page=parseInt(e.page,10)+1;t();return false})}m.append(A);m.append("<div style='clear: both;height:0px;'/>")}if(m.length>0&&(e.showPager==="both"||e.showPager==="top")){c.append(m)}j(b.feed.entry,e.sortPhotos);var C=(e.page-1)*e.maxResults;var D=e.maxResults*e.page;for(var y=0;y<g;y++){var E=l(b.feed.entry[y],!(y>=C&&y<D),s);c.append(E)}if(m.length>0&&(e.showPager==="both"||e.showPager==="bottom")){c.append(m.clone(true))}if(e.showPermaLink){c.append("<div style='clear: both;height:0px;'/>");var F=a("<div id='permalinkenable' class='pwi_nextpage'/>").text(e.labels.showPermaLink).bind("click.pwi",B,function(a){a.stopPropagation();var b=document.getElementById("permalinkbox");if(b){b.style.display="block"}b=document.getElementById("permalinkenable");if(b){b.style.display="none"}return false});var G=document.URL.split("?",2);var H=G[0]+"?pwi_album_selected="+b.feed.gphoto$name.$t+"&pwi_albumpage="+e.page;c.append(F);var I=a("<div style='display:none;' id='permalinkbox' />");var J=a("<form />");var K=a("<input type='text' size='40' name='PermaLink' readonly />").val(H);J.append(K);I.append(J);c.append(I)}e.photostore[e.album]=b;var L=a(".pwi_photo",c).css(e.thumbCss);if(e.popupPlugin==="fancybox"||e.popupPlugin==="colorbox"){e.popupExt(L.find("a[rel='lb-"+s+"']"));e.popupExt(L.find("a[rel='yt-"+s+"']"),"yt");e.popupExt(L.find("a[rel='sl-"+s+"']"),"sl");e.popupExt(L.find("a[rel='map-"+s+"']"),"map")}else if(e.popupPlugin==="slimbox"){L.find("a[rel='lb-"+s+"']").slimbox(e.slimbox_config,function(b){var c=b.title;if(b.parentNode.childElementCount>1){var d=a(".downloadlink",b.parentNode);if(d.length>0){var e='<a href="'+d[0].href+'">Download</a>';c=b.title+"  "+e}}return[b.href,c]})}c.append("<div style='clear: both;height:0px;'/>");v(false,c);k("div.pwi_photo")}function m(b){var c=a("<div/>"),d=0;var f,g;if(navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i)==null){f=new Date(e.albumStartDateTime);if(isNaN(f)){f=new Date(e.albumStartDateTime.replace(/-/g,"/"))}g=new Date(e.albumEndDateTime);if(isNaN(g)){g=new Date(e.albumEndDateTime.replace(/-/g,"/"))}}else{f=new Date(e.albumStartDateTime.replace(/-/g,"/"));g=new Date(e.albumEndDateTime.replace(/-/g,"/"))}j(b.feed.entry,e.sortAlbums);var i=0;var l=a.grep(b.feed.entry,function(b,c){if(c>=e.albumMaxResults)return false;var d=new Date(Number(b.gphoto$timestamp.$t));if((a.inArray(b.gphoto$name.$t,e.albums)>-1||e.albums.length===0)&&a.inArray(b.gphoto$name.$t,e.removeAlbums)==-1&&(b.gphoto$albumType===undefined||a.inArray(b.gphoto$albumType.$t,e.removeAlbumTypes)==-1)&&(e.albumStartDateTime==""||d>=f)&&(e.albumEndDateTime==""||d<=g)){var h=true;if(e.albumKeywords.length>0){h=false;var j=b.summary.$t.match(/\[keywords\s*:\s*(.*)\s*\]/);if(j){var k=new Array;var l=j[1].split(/,/);for(var m in l){var n=l[m].match(/\s*['"](.*)['"]\s*/);if(n){k.push(n[1])}}if(k.length>0){h=true;for(var m in e.albumKeywords){if(a.inArray(e.albumKeywords[m],k)<0){h=false;break}}}}}if(h==false)return false;i++;if(i>e.albumsPerPage*e.albumPage||i<=e.albumsPerPage*(e.albumPage-1))return false;else return true}return false});if(l.length==0){c=a("<div class='pwi_album_description'/>");c.append("<div class='title'>"+e.labels.noalbums+"</div>");v(false,c);return}a.each(l,function(b,d){var f=a("<div class='pwi_album' style='cursor: pointer;'/>");f.bind("click.pwi",d,function(a){a.stopPropagation();e.page=1;e.album=a.data.gphoto$name.$t;if(typeof e.onclickAlbumThumb==="function"){e.onclickAlbumThumb(a);return false}else{t();return false}});if(e.showAlbumThumbs){f.append("<img src='"+d.media$group.media$thumbnail[0].url+"' height='"+d.media$group.media$thumbnail[0].height+"' width='"+d.media$group.media$thumbnail[0].width+"'/>")}if(e.showAlbumTitles){f.append("<br/>"+(d.title.$t.length>e.showAlbumTitlesLength?d.title.$t.substring(0,e.showCaptionLength):d.title.$t)+"<br/>"+(e.showAlbumdate?h(d.gphoto$timestamp.$t):"")+(e.showAlbumPhotoCount?"    "+d.gphoto$numphotos.$t+" "+(d.gphoto$numphotos.$t=="1"?e.labels.photo:e.labels.photos):""))}c.append(f)});c.append("<div style='clear: both;height:0px;'/>");if(i>e.albumsPerPage){var n=i/e.albumsPerPage;var o=a("<div class='pwi_prevpage'/>").text(e.labels.prev),p=a("<div class='pwi_nextpage'/>").text(e.labels.next);$navRow=a("<div class='pwi_pager'/>");if(e.albumPage>1){o.addClass("link").bind("click.pwi",function(a){a.stopPropagation();e.albumPage=parseInt(e.albumPage,10)-1;m(b);return false})}$navRow.append(o);for(var q=1;q<n+1;q++){if(q==e.albumPage){tmp="<div class='pwi_pager_current'>"+q+"</div> "}else{tmp=a("<div class='pwi_pager_page'>"+q+"</div>").bind("click.pwi",q,function(a){a.stopPropagation();e.albumPage=a.data;m(b);return false})}$navRow.append(tmp)}if(e.albumPage<n){p.addClass("link").bind("click.pwi",function(a){a.stopPropagation();e.albumPage=parseInt(e.albumPage,10)+1;m(b);return false})}$navRow.append(p);$navRow.append("<div style='clear: both;height:0px;'/>");if($navRow.length>0&&(e.showPager==="both"||e.showPager==="top")){c.prepend($navRow.clone(true))}if($navRow.length>0&&(e.showPager==="both"||e.showPager==="bottom")){c.append($navRow)}}e.albumstore=b;v(false,c);k("div.pwi_album")}function l(b,c,d){var f,g="",h="",j="";if(b.summary){var k=b.summary.$t.match(/\[youtube\s*:\s*(.*)\s*\](.*)/);if(k){j=k[1];h=k[2].replace(/\n/g,"<br />\n")}else{h=b.summary.$t.replace(/\n/g,"<br />\n")}}if(e.showPhotoDate){if(b.exif$tags&&b.exif$tags.exif$time){g=i(b.exif$tags.exif$time.$t)}else if(b.gphoto$timestamp){g=i(b.gphoto$timestamp.$t)}else{g=i(b.published.$t)}g+=" "}if(c){f=a("<div class='pwi_photo' style='display: none'/>");if(j==""){f.append("<a href='"+b.media$group.media$thumbnail[1].url+"' rel='lb-"+d+"' title='"+g+"'></a>")}else if(e.popupPlugin!=="slimbox"){f.append("<a class='iframe' href='http://www.youtube.com/embed/"+j+"?autoplay=1&rel=0&hd=1' rel='yt-"+d+"' title='"+g+"'></a>")}else{f.append("<a href='"+b.media$group.media$thumbnail[1].url+"' rel='lb-"+d+"' title='"+g+" ("+e.labels.videoNotSupported+")'></a>")}if(e.showPhotoDownloadPopup){var l=a("<div style='display: none'/>");l.append("<a class='downloadlink' href='"+b.media$group.media$content[0].url+"'/>");f.append(l)}return f}else{g+=h.replace(new RegExp("'","g"),"&#39;");f=a("<div class='pwi_photo' style='cursor: pointer;'/>");if(j==""){f.append("<a href='"+b.media$group.media$thumbnail[1].url+"' rel='lb-"+d+"' title='"+g+"'><img src='"+b.media$group.media$thumbnail[0].url+"' height='"+b.media$group.media$thumbnail[0].height+"' width='"+b.media$group.media$thumbnail[0].width+"'/></a>")}else{if(e.popupPlugin!=="slimbox"){f.append("<a class='"+(e.popupPlugin==="fancybox"?"fancybox.iframe":"iframe")+"' href='http://www.youtube.com/embed/"+j+"?autoplay=1&rel=0&hd=1&autohide=1' rel='yt-"+d+"' title='"+g+"'><img id='main' src='"+b.media$group.media$thumbnail[0].url+"' height='"+b.media$group.media$thumbnail[0].height+"' width='"+b.media$group.media$thumbnail[0].width+"'/>"+"<img id='video' src='"+e.videoBorder+"' height='"+b.media$group.media$thumbnail[0].height+"' /></a>")}else{f.append("<a href='"+b.media$group.media$thumbnail[1].url+"' rel='lb-"+d+"' title='"+g+" ("+e.labels.videoNotSupported+")'>"+"<img src='"+b.media$group.media$thumbnail[0].url+"' height='"+b.media$group.media$thumbnail[0].height+"' width='"+b.media$group.media$thumbnail[0].width+"'/></a>")}}if(e.showPhotoDownloadPopup){var l=a("<div style='display: none'/>");l.append("<a class='downloadlink' href='"+b.media$group.media$content[0].url+"'/>");f.append(l)}if(e.showPhotoLocation||e.showPhotoCaption){f.append("<br/>");if(e.popupPlugin!=="slimbox"&&e.showPhotoLocation&&e.mapIconLocation!=""){if(b.georss$where&&b.georss$where.gml$Point&&b.georss$where.gml$Point.gml$pos){var m=a("<a class='"+(e.popupPlugin==="fancybox"?"fancybox.iframe":"iframe")+"' href='http://maps.google.com/?output=embed&t=h&z=15&q="+b.georss$where.gml$Point.gml$pos.$t+"' rel='map-"+e.username+"'>"+"<img src='"+e.mapIconLocation+"'></a>");f.append(m)}}if(e.showPhotoCaption){if(e.showPhotoCaptionDate&&e.showPhotoDate){h=g}if(e.showPhotoDownload){h+='<a href="'+b.media$group.media$content[0].url+'">'+e.labels.downloadphotos+"</a>"}if(h.length>e.showCaptionLength){h=h.substring(0,e.showCaptionLength)}f.append(h)}}if(typeof e.onclickThumb==="function"){var n=b;f.bind("click.pwi",n,q)}return f}}function k(b){var c=0;var d=0;a(b).each(function(a,b){if(b.clientHeight>c)c=b.clientHeight;if(b.clientWidth>d)d=b.clientWidth});a(b).css("height",c+2+"px");if(e.thumbAlign==1){a(b).css("width",d+2+"px")}}function j(a,b){function f(a,b){var c=a.title.$t.toLowerCase();var d=b.title.$t.toLowerCase();if(c>d){return-1}if(c<d){return 1}return 0}function e(a,b){var c=a.title.$t.toLowerCase();var d=b.title.$t.toLowerCase();if(c<d){return-1}if(c>d){return 1}return 0}function d(a,b){return Number(b.gphoto$timestamp.$t)-Number(a.gphoto$timestamp.$t)}function c(a,b){return Number(a.gphoto$timestamp.$t)-Number(b.gphoto$timestamp.$t)}if(b==="none")return;if(b==="ASC_DATE"){a.sort(c)}else if(b==="DESC_DATE"){a.sort(d)}else if(b==="ASC_NAME"){a.sort(e)}else if(b==="DESC_NAME"){a.sort(f)}}function i(a){var b=new Date(Number(a));$year=b.getUTCFullYear();if($year<1e3){$year+=1900}if(b=="Invalid Date"){return a}else{if(b.getUTCHours()==0&&b.getUTCMinutes()==0&&b.getUTCSeconds()==0){return b.getUTCDate()+"-"+(b.getUTCMonth()+1)+"-"+$year}else{return b.getUTCDate()+"-"+(b.getUTCMonth()+1)+"-"+$year+" "+b.getUTCHours()+":"+(b.getUTCMinutes()<10?"0"+b.getUTCMinutes():b.getUTCMinutes())}}}function h(a){var b=new Date(Number(a)),c=b.getUTCFullYear();if(c<1e3){c+=1900}return b.getUTCDate()+"-"+(b.getUTCMonth()+1)+"-"+c}function g(){if(e.username===""){alert("Make sure you specify at least your username."+"\n"+"See http://pwi.googlecode.com for more info");return}if(e.useQueryParameters){var a=document.URL.split("?",2);if(a.length==2){var b=a[1].split("&");var c=false;var d=1;for($queryParam in b){var f=b[$queryParam].split("=",2);if(f.length==2){if(f[0]=="pwi_album_selected"){e.mode="album";e.album=f[1];c=true}if(f[0]=="pwi_albumpage"){d=f[1]}if(f[0]=="pwi_showpermalink"){e.showPermaLink=true}}}if(c){e.page=d;e.showPermaLink=false}}}switch(e.mode){case"latest":u();break;case"album":t();break;case"keyword":t();break;default:r();break}}function f(){e=c;ts=(new Date).getTime();e.id=ts;d=a("<div id='pwi_"+ts+"'/>").appendTo(b);d.addClass("pwi_container");g();return false}var d,e={};c=a.extend(true,{},a.fn.pwi.defaults,c);if(c.popupPlugin==""){if(a.fn.fancybox){c.popupPlugin="fancybox"}else if(a.fn.colorbox){c.popupPlugin="colorbox"}else if(a.fn.slimbox){c.popupPlugin="slimbox"}}if(c.popupExt==""){if(c.popupPlugin==="fancybox"){c.popupExt=function(a,b){b=typeof b!="undefined"?b:"lb";if(b==="lb"){a.fancybox(c.fancybox_config.config_photos)}else if(b==="yt"){a.fancybox(c.fancybox_config.config_youtube)}else if(b==="sl"){a.fancybox(c.fancybox_config.config_slideshow)}else if(b==="map"){a.fancybox(c.fancybox_config.config_maps)}}}else if(c.popupPlugin==="colorbox"){c.popupExt=function(a,b){b=typeof b!="undefined"?b:"lb";if(b==="lb"){a.colorbox(c.colorbox_config.config_photos)}else if(b==="yt"){a.colorbox(c.colorbox_config.config_youtube)}else if(b==="sl"){a.colorbox(c.colorbox_config.config_slideshow)}else if(b==="map"){a.colorbox(c.colorbox_config.config_maps)}}}}b=this;f()};a.fn.pwi.defaults={mode:"albums",username:"",album:"",authKey:"",albums:[],keyword:"",albumKeywords:[],albumStartDateTime:"",albumEndDateTime:"",albumCrop:1,albumTitle:"",albumThumbSize:160,albumThumbAlign:1,albumMaxResults:999,albumsPerPage:999,albumPage:1,albumTypes:"public",page:1,photoSize:"auto",maxResults:50,showPager:"bottom",thumbSize:72,thumbCrop:0,thumbAlign:0,thumbCss:{margin:"5px"},onclickThumb:"",onclickAlbumThumb:"",sortAlbums:"none",sortPhotos:"none",removeAlbums:[],removeAlbumTypes:[],showAlbumTitles:true,showAlbumTitlesLength:9999,showAlbumThumbs:true,showAlbumdate:true,showAlbumPhotoCount:true,showAlbumDescription:true,showAlbumLocation:true,showSlideshow:true,showSlideshowLink:false,showPhotoCaption:false,showPhotoCaptionDate:false,showCaptionLength:9999,showPhotoDownload:false,showPhotoDownloadPopup:false,showPhotoDate:true,showPermaLink:false,showPhotoLocation:false,mapIconLocation:"",useQueryParameters:true,loadingImage:"",videoBorder:"images/video.jpg",labels:{photo:"photo",photos:"photos",downloadphotos:"Download photos",albums:"Back to albums",slideshow:"Display slideshow",noalbums:"No albums available",loading:"PWI fetching data...",page:"Page",prev:"Previous",next:"Next",showPermaLink:"Show PermaLink",videoNotSupported:"Video not supported",devider:"|"},months:["January","February","March","April","May","June","July","August","September","October","November","December"],fancybox_config:{config_photos:{closeClick:false,nextEffect:"none",loop:false,beforeLoad:formatPhotoTitleFancyBox},config_youtube:{arrows:false,fitToView:false,width:"90%",height:"90%",autoSize:false,closeClick:false,openEffect:"none",closeEffect:"none"},config_slideshow:{arrows:false,closeClick:false},config_maps:{arrows:false}},colorbox_config:{config_photos:{title:formatPhotoTitleColorBox,loop:false},config_youtube:{iframe:true,innerWidth:"80%",innerHeight:"80%",rel:"nofollow"},config_slideshow:{iframe:true,innerWidth:"80%",innerHeight:"80%",loop:false,rel:"nofollow"},config_maps:{iframe:true,innerWidth:"80%",innerHeight:"80%",rel:"nofollow"}},slimbox_config:{loop:false,overlayOpacity:.6,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initlaHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"{x}/{y}",closeKeys:[27,88,67,70],prevKeys:[37,80],nextKeys:[39,83]},blockUIConfig:{message:"<div class='lbLoading pwi_loader'>loading...</div>",css:"pwi_loader"},albumstore:{},photostore:{},popupPlugin:"",popupExt:"",token:""}})(jQuery)

